package com.group_e.Bubble.server;

import java.util.Date;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import com.google.appengine.api.users.User;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Tasks {
	
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;
	@Persistent
	private User user;
	@Persistent
	private String name;
	@Persistent
	private Date createDate;
	@Persistent
	private String descrip;
	@Persistent
	private Date dueDate;
	@Persistent
	private String tag1;
	@Persistent
	private String tag2;
	@Persistent
	private String tag3;
	@Persistent
	private String tag4;
	@Persistent
	private Date remove_date;
	@Persistent
	private Date complete_date;
	
	public Tasks() {
		this.createDate = new Date();
	}
	
	public Tasks(User user, String name) {
		this();
		this.user = user;
		this.name = name;
	}
	
	public Tasks(User user, String name, String tag1, String tag2, String tag3, String tag4) {
		this();
		this.user = user;
		this.name = name;
		this.tag1 = tag1;
		this.tag2 = tag2;
		this.tag3 = tag3;
		this.tag4 = tag4;
	}
	
	public Long getId() {
		return this.id;
	}
	
	public User getUser() {
		return this.user;
	}
	
	public String getName() {
		return this.name;
	}
	
	public Date getCreateDate() {
		return this.createDate;
	}
	
	public String getDescrip() {
		return this.descrip;
	}
	
	public Date getDueDate() {
		return this.dueDate;
	}
	
	public String getTag1() {
		return this.tag1;
	}
	
	public String getTag2() {
		return this.tag2;
	}
	
	public String getTag3() {
		return this.tag3;
	}
	
	public String getTag4() {
		return this.tag4;
	}
	
	public Date getRemoveDate() {
		return this.remove_date;
	}
	
	public Date getCompleteDate() {
		return this.complete_date;
	}
	
	public void setUser(User user) {
		this.user = user;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public void setDescrip(String descrip) {
		this.descrip = descrip;
	}
	
	public void setDueDate(Date dueDate) {
		this.dueDate = dueDate;
	}
	
	public void setTag1(String tag1)
	{
		this.tag1 = tag1;
	}
	
	public void setTag2(String tag2)
	{
		this.tag2 = tag2;
	}
	
	public void setTag3(String tag3)
	{
		this.tag3 = tag3;
	}
	
	public void setTag4(String tag4) {
		this.tag4 = tag4;
	}
	
	public void setRemoveDate() {
		this.remove_date = new Date();
	}
	
	public void setCompleteDate() {
		this.complete_date = new Date();
	}
}
